package com.mspbots.core.wise.service;

import com.mspbots.core.DefaultBaseService;
import com.mspbots.core.wise.model.TenantConfiguration;

import java.util.Collection;
import java.util.List;

public interface TenantConfigurationService extends DefaultBaseService<TenantConfiguration> {

    TenantConfiguration selectByKeyword(long tenantId, String keyword);

    List<TenantConfiguration> selectListByKeyword(String keyword);

    Collection<TenantConfiguration> selectAllByTenantId(long tenantId);

    /**
     * batch add and update
     *
     * @param tenantConfigurations Tenant Configurations
     * @returnTenant Configurations
     */
    List<TenantConfiguration> batchSave(List<TenantConfiguration> tenantConfigurations);
}
